package com.imooc.service;

import com.github.pagehelper.PageInfo;
import com.imooc.pojo.GoodsInfo;

import java.util.Map;

public interface GoodsInfoService {

    PageInfo<GoodsInfo> getAllGoodsInfo(Map<String, Object> map, int currentPage, int pageSize);

    /**
     * 查询单个商品信息
     * @param map
     * @return
     */
    GoodsInfo getGoodsInfo(Map<String, Object> map);

    /**
     * 清空表数据
     */
    void truncateGoodsInfo();

    /**
     * 通过条件删除
     * @param param
     */
    void deleteByParam(Map<String, Object> param);


    void updateByParam(GoodsInfo goodsInfo);
}
